﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Home.Master" AutoEventWireup="true" CodeBehind="ListProject.aspx.cs" Inherits="TimeWork.ListProject" %>
<asp:Content ID="Bredcrumb_child" ContentPlaceHolderID="Bredcrumb" runat="server">
    <li><a href="#" class="report">Quản trị</a></li>>
    <li><a href="ListProject.aspx">Quản lý sản phẩm</a></li>
</asp:Content>
<asp:Content ID="MainContent_child" ContentPlaceHolderID="MainContent" runat="server">
    <form runat="server" id="FrmListProject">
        <h2>Danh sách sản phẩm</h2>
        <div class="list-staff">
        <asp:GridView ID="GvListProject" runat="server" AutoGenerateColumns="False" DataKeyNames="ProjectID">
                <Columns>
                    <asp:TemplateField HeaderText="Mã SP" HeaderStyle-HorizontalAlign="Center" HeaderStyle-BackColor="#f3f9ff" HeaderStyle-ForeColor="#375b91" ItemStyle-HorizontalAlign="Center">
                        <ItemTemplate>
                            <asp:Label ID="lblProjectID" runat="server" Text='<%# Eval("ProjectID") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Tên sản phẩm" HeaderStyle-HorizontalAlign="Center" HeaderStyle-BackColor="#f3f9ff" HeaderStyle-ForeColor="#375b91">
                        <ItemTemplate>
                            <a href="ViewProject.aspx?pid=<%# Eval("ProjectID") %>"><%# Eval("ProjectName") %></a>
                            <%--<asp:Label ID="lblProjectName" runat="server" Text='<%# Eval("ProjectName") %>'></asp:Label>
                       --%> </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Người chủ trì" HeaderStyle-HorizontalAlign="Center" HeaderStyle-BackColor="#f3f9ff" HeaderStyle-ForeColor="#375b91">
                        <ItemTemplate>
                            <asp:Label ID="lblProjectManager" runat="server" Text='<%# Eval("StaffName") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Ngày bắt đầu" HeaderStyle-HorizontalAlign="Center" HeaderStyle-BackColor="#f3f9ff" HeaderStyle-ForeColor="#375b91">
                        <ItemTemplate>
                            <asp:Label ID="lblProjectStartDate" runat="server" Text='<%# Eval("ProjectStartDate","{0:dd/MM/yyyy}") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Ngày hoàn thành" HeaderStyle-HorizontalAlign="Center" HeaderStyle-BackColor="#f3f9ff" HeaderStyle-ForeColor="#375b91">
                        <ItemTemplate>
                            <asp:Label ID="lblProjectEndDate" runat="server" Text='<%# Eval("ProjectEndDate","{0:dd/MM/yyyy}") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
        </asp:GridView>
        <div class="footer-project">
            <div class="checkbox">
                <asp:CheckBox ID="cbHideProject" runat="server" AutoPostBack="True" 
                    oncheckedchanged="cbHideProject_CheckedChanged" /> Ẩn các sản phẩm đã hoàn thành
            </div>
            <div class="control">
                <asp:Button ID="btnCreate" runat="server" Text="Tạo mới sản phẩm" 
                    CssClass="mybutton" onclick="btnCreate_Click" />
            </div>
        </div>
        </div>
    </form>
</asp:Content>
